import { ApiParser, Mscf, getQueryString } from 'nearby-common';
import config from '@/config';

export const parser = new ApiParser(process.env.NODE_ENV !== 'production');

const mscfInstance = new Mscf({ role: 'child', token: 'nearby', name: config.LL_APP_NAME }); // todo:

export const mscf = mscfInstance;

/**
 * 获取location参数
 * @param {*} name
 * @param {*} path
 * @returns
 */
export function getQueryParam(name) {
	return getQueryString(name);
}
